package com.nnnu.wsnackshop.service;

import com.nnnu.wsnackshop.pojo.dto.AddPermissionDTO;
import com.nnnu.wsnackshop.pojo.dto.PermissionPageDTO;
import com.nnnu.wsnackshop.pojo.dto.UpdatePermissionDTO;
import com.nnnu.wsnackshop.pojo.entity.Permissions;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nnnu.wsnackshop.pojo.vo.PermissionVO;
import com.nnnu.wsnackshop.result.PageResult;

import java.util.List;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author zk
 * @since 2025-05-14
 */
public interface IPermissionsService extends IService<Permissions> {

    PageResult<PermissionVO> pagePermissions(PermissionPageDTO dto);
    PermissionVO getPermissionDetail(Long id);
    void createPermission(AddPermissionDTO dto);
    void updatePermission(UpdatePermissionDTO dto);
    void deletePermissions(List<Long> ids);
}
